Dynomotion

Group: DynoMotion Message: 5057 From: himykabibble Date: 5/24/2012
Subject: How Do I Make It Stop Doing This....
Tom,

A small problem I've been unable to find a solution to.... I've just added a stepper, running on a Gecko, as my "B" axis. This operates my power drawbar (PDB). To grab the tool, I set an output bit which activates an air solenoid to drop the PDB onto the drawbar, then I spin the B axis 1.5 turns to release the tool, then turn off the air solenoid. Releasing the tool is, more or less, the reverse. This is all done in a C program integrated into my pendant "driver", using MoveRel, and MoveRelAtVel.

Now, here's the problem - When I get to a toolchange in a G-code program, I do the M6, then a MSG comment, prompting me to swap the tool. I run the C program to release the current tool, then grab the new tool. I then dismiss the MSG dialog. But, sometimes, when the G-code starts running again, the PDB rotates. I'm sure what's happening is the interpreter is returning the B axis to the position it was at before the toolchange, "un-doing" the moves done to release then grab the new tool.

How can I make it stop doing that? I've tried adding a "EnableAxisDest(4, 0.0)" both before at the entry and exit of the C functions to operate the drawbar, but the moves still sometimes happen. What I'd really like to do is have the B axis disabled except when the drawbar is actually operating, but if I do that, then nothing moves any more.

Regards,
Ray L.
Group: DynoMotion Message: 5060 From: Tom Kerekes Date: 5/25/2012
Subject: Re: How Do I Make It Stop Doing This....
Hi Ray,
 
That sounds cool.  Do you have the B axis included in the DefineCoordSystem?  If so remove it and it should solve the problem (if not in the coordinate system it should never be commanded to move).
 
Regards
TK

From: himykabibble <jagboy@...>
To: DynoMotion@yahoogroups.com
Sent: Thursday, May 24, 2012 8:22 PM
Subject: [DynoMotion] How Do I Make It Stop Doing This....

 
Tom,

A small problem I've been unable to find a solution to.... I've just added a stepper, running on a Gecko, as my "B" axis. This operates my power drawbar (PDB). To grab the tool, I set an output bit which activates an air solenoid to drop the PDB onto the drawbar, then I spin the B axis 1.5 turns to release the tool, then turn off the air solenoid. Releasing the tool is, more or less, the reverse. This is all done in a C program integrated into my pendant "driver", using MoveRel, and MoveRelAtVel.

Now, here's the problem - When I get to a toolchange in a G-code program, I do the M6, then a MSG comment, prompting me to swap the tool. I run the C program to release the current tool, then grab the new tool. I then dismiss the MSG dialog. But, sometimes, when the G-code starts running again, the PDB rotates. I'm sure what's happening is the interpreter is returning the B axis to the position it was at before the toolchange, "un-doing" the moves done to release then grab the new tool.

How can I make it stop doing that? I've tried adding a "EnableAxisDest(4, 0.0)" both before at the entry and exit of the C functions to operate the drawbar, but the moves still sometimes happen. What I'd really like to do is have the B axis disabled except when the drawbar is actually operating, but if I do that, then nothing moves any more.

Regards,
Ray L.



Group: DynoMotion Message: 5061 From: Tom Kerekes Date: 5/25/2012
Subject: Re: How Do I Make It Stop Doing This....
Hi Ray,
 
That sounds cool.  Do you have the B axis included in the DefineCoordSystem?  If so remove it and it should solve the problem (if not in the coordinate system it should never be commanded to move).
 
Regards
TK

From: himykabibble <jagboy@...>
To: DynoMotion@yahoogroups.com
Sent: Thursday, May 24, 2012 8:22 PM
Subject: [DynoMotion] How Do I Make It Stop Doing This....

 
Tom,

A small problem I've been unable to find a solution to.... I've just added a stepper, running on a Gecko, as my "B" axis. This operates my power drawbar (PDB). To grab the tool, I set an output bit which activates an air solenoid to drop the PDB onto the drawbar, then I spin the B axis 1.5 turns to release the tool, then turn off the air solenoid. Releasing the tool is, more or less, the reverse. This is all done in a C program integrated into my pendant "driver", using MoveRel, and MoveRelAtVel.

Now, here's the problem - When I get to a toolchange in a G-code program, I do the M6, then a MSG comment, prompting me to swap the tool. I run the C program to release the current tool, then grab the new tool. I then dismiss the MSG dialog. But, sometimes, when the G-code starts running again, the PDB rotates. I'm sure what's happening is the interpreter is returning the B axis to the position it was at before the toolchange, "un-doing" the moves done to release then grab the new tool.

How can I make it stop doing that? I've tried adding a "EnableAxisDest(4, 0.0)" both before at the entry and exit of the C functions to operate the drawbar, but the moves still sometimes happen. What I'd really like to do is have the B axis disabled except when the drawbar is actually operating, but if I do that, then nothing moves any more.

Regards,
Ray L.



Group: DynoMotion Message: 5067 From: himykabibble Date: 5/25/2012
Subject: Re: How Do I Make It Stop Doing This....
Tom,

It is VERY cool! I'm *really* pleased at how well it works. For TTS tooling (which is what I use 99% of the time), I can do a manual toolchange in under 4 seconds. R8 obviously takes longer, But it works like a charm.

I do have "DefineCS = 0 1 2 3 4 -1" in the init code in my app. I tried using "DefineCS = 0 1 2 3 -1 -1" and the axis did not work at all. Maybe I did something wrong? I'll try again.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
>  
> That sounds cool.  Do you have the B axis included in the DefineCoordSystem?  If so remove it and it should solve the problem (if not in the coordinate system it should never be commanded to move).
>  
> Regards
> TK
>
>
> ________________________________
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, May 24, 2012 8:22 PM
> Subject: [DynoMotion] How Do I Make It Stop Doing This....
>
>
>
>  
>
> Tom,
>
> A small problem I've been unable to find a solution to.... I've just added a stepper, running on a Gecko, as my "B" axis. This operates my power drawbar (PDB). To grab the tool, I set an output bit which activates an air solenoid to drop the PDB onto the drawbar, then I spin the B axis 1.5 turns to release the tool, then turn off the air solenoid. Releasing the tool is, more or less, the reverse. This is all done in a C program integrated into my pendant "driver", using MoveRel, and MoveRelAtVel.
>
> Now, here's the problem - When I get to a toolchange in a G-code program, I do the M6, then a MSG comment, prompting me to swap the tool. I run the C program to release the current tool, then grab the new tool. I then dismiss the MSG dialog. But, sometimes, when the G-code starts running again, the PDB rotates. I'm sure what's happening is the interpreter is returning the B axis to the position it was at before the toolchange, "un-doing" the moves done to release then grab the new tool.
>
> How can I make it stop doing that? I've tried adding a "EnableAxisDest(4, 0.0)" both before at the entry and exit of the C functions to operate the drawbar, but the moves still sometimes happen. What I'd really like to do is have the B axis disabled except when the drawbar is actually operating, but if I do that, then nothing moves any more.
>
> Regards,
> Ray L.
>